
#include "log.h"

#define TEST_ALL 0
#define TEST_OVERLOOK   1


int main()
{
#if TEST_ALL
    log_t *log = log_init("/tmp/test.log", LSF_FULL, LOG_LEVEL_DEFAULT);

    LOG_CUSTOM("CUSTOM", log, "test custom");
    LOG_DEFAULT(log, "test default");
    LOG_INFO(log, "test info");
    LOG_NOTICE(log, "test notice");
    LOG_WARNING(log, "test warning");
    LOG_ERROR(log, "test error");
    LOG_CRITICAL(log, "test critical");
    LOG_ALERT(log, "test alert");
    LOG_EMERG(log, "test emerg");

#endif

#if TEST_OVERLOOK
    log_t *log = log_init("/tmp/test.log", LSF_FULL, LOG_LEVEL_ERROR);

    LOG_CUSTOM("CUSTOM", log, "test custom");
    LOG_DEFAULT(log, "test default");
    LOG_INFO(log, "test info");
    LOG_NOTICE(log, "test notice");
    LOG_WARNING(log, "test warning");
    LOG_ERROR(log, "test error");
    LOG_CRITICAL(log, "test critical");
    LOG_ALERT(log, "test alert");
    LOG_EMERG(log, "test emerg");
#endif


    log_destroy(log);
    return 0;
}